﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSpace.Core;
using SmartSpace;
using System.IO;
using SmartSpace.Packaging;
using SmartSapce.ServiceLocation;

namespace SmartSpace.WebApp._console.core
{
    public partial class user_list : System.Web.UI.Page
    {
        private Guid _selectedUserId;

        protected void Page_Load(object sender, EventArgs e)
        {
            if(!string.IsNullOrEmpty(Request.QueryString["id"]))
            {
                _selectedUserId = new Guid(Request.QueryString["id"]);
            }

            if (!IsPostBack)
            {
                ICoreService service = ServiceLocator.Get<ICoreService>();
                PagedList<User> users = service.GetUsers(0, 999);
                _ctlGridUser.DataSource = users;
                _ctlGridUser.DataBind();
            }
        }
    }
}